import {
	request
} from "./request";

//获取教材同步单元列表
export function wordList(data) {
	return request({
		url: '/api/textbook/unitword',
		method: "post"
	}, {
		data,
	});
};
//获取教材同步单元详情
export function wordDetail(query) {
	return request({
		url: '/api/textbook/wordinfo',
		method: "get"
	}, {
		query,
	});
};

//保存模拟试题
export function saveExercise(data) {
	return request({
		url: '/api/new_answer/saveExercise',
		method: "post"
	}, {
		data,
	});
};

// 上传单词文件
export function uploadFiles(data) {
	return request({
		url: "/api/common/upload",
		method: "post"
	}, {
		data,
	});
}